import Vue from 'vue'
import Router from 'vue-router'
// import Home from './views/Home.vue'
// import Login from './views/login/index.vue'
// import ForgetPassword from './views/forgetPassword/index.vue'
// import Registered from './views/registered/index.vue'
Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'home',
        component: () =>
            import( /* webpackChunkName: "about" */ './views/index/index.vue'),
        redirect: '/index',
        meta: {
            // requireAuth: true
        },
        children: [{
            path: '/index',
            name: 'index',
            component: () =>
                import( /* webpackChunkName: "about" */ './views/index/index.vue'),
            meta: {
                title: '全能猫-首页',
                name:"viewport",
                content:"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0"
                // requireAuth: true
            }
        },]
    }, {
        path: '/record',
        name: 'record',
        component: () =>
            import( /* webpackChunkName: "about" */ './views/detail/index.vue'),
        meta: {
            title: '',
            name: "apple-mobile-web-app-capable",
            content:"yes"
            // requireAuth: true
        }
    }]
})
